package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户表 t_user
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
public class User extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Long id;
	/** 名称 */
	private String name;
	/** 头像 */
	private String avatar;
	/** 用户类型 1：居民 2：商户 */
	private String userType;
	/** 手机号 */
	private Long mobile;
	/** 密码 */
	private String password;
	/** 微信OPENID */
	private String wxOpenid;
	/** 密码盐 */
	private String salt;
	/** 年龄 */
	private Integer age;
	/** 省份 */
	private String province;
	/** 城市 */
	private String city;
	/** 区 */
	private String area;
	/** 镇 */
	private String town;
	/** 卡号 */
	private String card;
	/** 状态（0正常 1停用） */
	private String status;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setAvatar(String avatar) 
	{
		this.avatar = avatar;
	}

	public String getAvatar() 
	{
		return avatar;
	}
	public void setUserType(String userType) 
	{
		this.userType = userType;
	}

	public String getUserType() 
	{
		return userType;
	}
	public void setMobile(Long mobile) 
	{
		this.mobile = mobile;
	}

	public Long getMobile() 
	{
		return mobile;
	}
	public void setPassword(String password) 
	{
		this.password = password;
	}

	public String getPassword() 
	{
		return password;
	}
	public void setWxOpenid(String wxOpenid) 
	{
		this.wxOpenid = wxOpenid;
	}

	public String getWxOpenid() 
	{
		return wxOpenid;
	}
	public void setSalt(String salt) 
	{
		this.salt = salt;
	}

	public String getSalt() 
	{
		return salt;
	}
	public void setAge(Integer age) 
	{
		this.age = age;
	}

	public Integer getAge() 
	{
		return age;
	}
	public void setProvince(String province) 
	{
		this.province = province;
	}

	public String getProvince() 
	{
		return province;
	}
	public void setCity(String city) 
	{
		this.city = city;
	}

	public String getCity() 
	{
		return city;
	}
	public void setArea(String area) 
	{
		this.area = area;
	}

	public String getArea() 
	{
		return area;
	}
	public void setTown(String town) 
	{
		this.town = town;
	}

	public String getTown() 
	{
		return town;
	}
	public void setCard(String card) 
	{
		this.card = card;
	}

	public String getCard() 
	{
		return card;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("avatar", getAvatar())
            .append("userType", getUserType())
            .append("mobile", getMobile())
            .append("password", getPassword())
            .append("wxOpenid", getWxOpenid())
            .append("salt", getSalt())
            .append("age", getAge())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("town", getTown())
            .append("card", getCard())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
